package com.example.service;

import com.example.pojo.Collection;
import com.example.pojo.Comment;
import com.example.pojo.Work;

import java.util.List;

public interface WorkService {
    List<Work> findAll();
    void insert(Work work);
    void insertComment(Comment comment);

    void incrementViews(Integer id);
    void incrementLikes(Integer id);

    List<Comment> findCommentsByWorksId(Integer workId);
    Work findById(Integer id);

    List<Work> findByUserId(Integer userId);

    void deleteById(Integer id);

    void insertCollection(Collection collection);

    List<Collection> getUserCollections(Integer userId);

    boolean checkCollection(Integer userId, Integer workId);

    void deleteCollection(Integer userId, Integer workId);
}
